package my.test.command;

/**
 * @author:许玉康
 * @Date: 2019/7/14 18:52
 */
public class Invoker {

    //什么命令
    private Command command;
    //客户发出命令
    public void setCommand(Command command) {
        this.command = command;
    }

    //执行客户的命令
    public void action() {
        this.command.execute();
    }
}
